package com.example.sunmiv1.entity;

import java.io.Serializable;
import java.util.List;

public class LoginEntity implements Serializable {

    /**
     * status : 1
     * msg : 登錄成功,上次未交班，請勿忘記交班
     * data : {"cashier_id":"23","name":"錢多多","store_id":"1","merchant_id":"1","store_name":"姑蘇直營店","cash_model":"2","print_time":"1","MerchantConfig":{"integral_arrive_cash":"1","integral_arrive_cash_data":"1","integral_arrive_cash_rate":"0.0100","other_pay":"1"},"otherPayList":[{"id":"1","name":"ces"},{"id":"11","name":"12"},{"id":"10","name":"sss"},{"id":"9","name":"測試其他支付"},{"id":"8","name":"哈哈哈3"},{"id":"7","name":"哈哈哈2"},{"id":"6","name":"哈哈哈1"},{"id":"5","name":"哈哈哈"},{"id":"4","name":"銀行卡"},{"id":"3","name":"POS機44"},{"id":"2","name":"ces1"},{"id":"12","name":"121"}],"auth":{"add_goods_jurisdiction":1,"store_operation_vip":1,"store_preferential":1,"preferential":1,"sale_diction_state":1,"modify_plus_mem":2},"login_key":"vo9pkow63e15gae8y68chj12r5rui4e9"}
     */

    private int status;
    private String msg;
    private DataBean data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * cashier_id : 23
         * name : 錢多多
         * store_id : 1
         * merchant_id : 1
         * store_name : 姑蘇直營店
         * cash_model : 2
         * print_time : 1
         * MerchantConfig : {"integral_arrive_cash":"1","integral_arrive_cash_data":"1","integral_arrive_cash_rate":"0.0100","other_pay":"1"}
         * otherPayList : [{"id":"1","name":"ces"},{"id":"11","name":"12"},{"id":"10","name":"sss"},{"id":"9","name":"測試其他支付"},{"id":"8","name":"哈哈哈3"},{"id":"7","name":"哈哈哈2"},{"id":"6","name":"哈哈哈1"},{"id":"5","name":"哈哈哈"},{"id":"4","name":"銀行卡"},{"id":"3","name":"POS機44"},{"id":"2","name":"ces1"},{"id":"12","name":"121"}]
         * auth : {"add_goods_jurisdiction":1,"store_operation_vip":1,"store_preferential":1,"preferential":1,"sale_diction_state":1,"modify_plus_mem":2}
         * login_key : vo9pkow63e15gae8y68chj12r5rui4e9
         */

        private String cashier_id;
        private String name;
        private String store_id;
        private String merchant_id;
        private String store_name;
        private String cash_model;
        private String print_time;
        private MerchantConfigBean MerchantConfig;
        private AuthBean auth;
        private String login_key;
        private String supplier_type; // 供貨商類型  1常規 2寄售
        private List<OtherPayListBean> otherPayList;
        private boolean credit;
        private String platform_type;

        public String getPlatform_type() {
            return platform_type == null ? "" : platform_type;
        }

        public boolean isCredit() {
            return credit;
        }

        public void setCredit(boolean credit) {
            this.credit = credit;
        }

        public String getCashier_id() {
            return cashier_id;
        }

        public void setCashier_id(String cashier_id) {
            this.cashier_id = cashier_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getStore_id() {
            return store_id;
        }

        public void setStore_id(String store_id) {
            this.store_id = store_id;
        }

        public String getMerchant_id() {
            return merchant_id;
        }

        public void setMerchant_id(String merchant_id) {
            this.merchant_id = merchant_id;
        }

        public String getStore_name() {
            return store_name;
        }

        public void setStore_name(String store_name) {
            this.store_name = store_name;
        }

        public String getCash_model() {
            return cash_model;
        }

        public void setCash_model(String cash_model) {
            this.cash_model = cash_model;
        }

        public String getPrint_time() {
            return print_time;
        }

        public void setPrint_time(String print_time) {
            this.print_time = print_time;
        }

        public MerchantConfigBean getMerchantConfig() {
            return MerchantConfig;
        }

        public void setMerchantConfig(MerchantConfigBean MerchantConfig) {
            this.MerchantConfig = MerchantConfig;
        }
        public String getSupplier_type() {
            return supplier_type==null?"1":supplier_type;
        }

        public void setSupplier_type(String supplier_type) {
            this.supplier_type = supplier_type;
        }

        public AuthBean getAuth() {
            return auth;
        }

        public void setAuth(AuthBean auth) {
            this.auth = auth;
        }

        public String getLogin_key() {
            return login_key;
        }

        public void setLogin_key(String login_key) {
            this.login_key = login_key;
        }

        public List<OtherPayListBean> getOtherPayList() {
            return otherPayList;
        }

        public void setOtherPayList(List<OtherPayListBean> otherPayList) {
            this.otherPayList = otherPayList;
        }

        public static class MerchantConfigBean {
            /**
             * integral_arrive_cash : 1
             * integral_arrive_cash_data : 1
             * integral_arrive_cash_rate : 0.0100
             * other_pay : 1
             */

            private String integral_arrive_cash;
            private String integral_arrive_cash_data;
            private String integral_arrive_cash_rate;
            private String integral_arrive_cash_price;
            private String other_pay;

            private String marketing_methods;//1基於訂單  2基於商品

            public String getMarketing_methods() {
                return marketing_methods == null ? "" : marketing_methods;
            }

            public void setMarketing_methods(String marketing_methods) {
                this.marketing_methods = marketing_methods;
            }


            public String getIntegral_arrive_cash() {
                return integral_arrive_cash;
            }

            public void setIntegral_arrive_cash(String integral_arrive_cash) {
                this.integral_arrive_cash = integral_arrive_cash;
            }

            public String getIntegral_arrive_cash_data() {
                return integral_arrive_cash_data;
            }

            public void setIntegral_arrive_cash_data(String integral_arrive_cash_data) {
                this.integral_arrive_cash_data = integral_arrive_cash_data;
            }

            public String getIntegral_arrive_cash_rate() {
                return integral_arrive_cash_rate;
            }

            public void setIntegral_arrive_cash_rate(String integral_arrive_cash_rate) {
                this.integral_arrive_cash_rate = integral_arrive_cash_rate;
            }

            public String getIntegral_arrive_cash_price() {
                return integral_arrive_cash_price == null ? "" : integral_arrive_cash_price;
            }

            public void setIntegral_arrive_cash_price(String integral_arrive_cash_price) {
                this.integral_arrive_cash_price = integral_arrive_cash_price;
            }

            public String getOther_pay() {
                return other_pay;
            }

            public void setOther_pay(String other_pay) {
                this.other_pay = other_pay;
            }
        }

        public static class AuthBean {
            /**
             * add_goods_jurisdiction : 1
             * store_operation_vip : 1
             * store_preferential : 1
             * preferential : 1
             * sale_diction_state : 1
             * modify_plus_mem : 2
             */

            private int add_goods_jurisdiction;
            private int store_operation_vip;
            private int store_preferential;
            private int preferential;
            private int sale_diction_state;
            private int modify_plus_mem;
            private int density_free_state;//是否開啓會員免密  0關閉  1開啓


            private int goods_gifts_num;//可以贈送的商品數量

            private int goods_gifts_auth;//1有權限贈送商品 0沒有權限

            private String is_check_show_invenum;
            private int is_goods_manage;
            private int goods_manage_edit;
            private int goods_manage_del;
            private int goods_manage_operate;

            public int getGoods_manage_operate() {
                return goods_manage_operate;
            }

            public int getGoods_manage_del() {
                return goods_manage_del;
            }

            public int getGoods_manage_edit() {
                return goods_manage_edit;
            }

            public int getIs_goods_manage() {
                return is_goods_manage;
            }

            public String getIs_check_show_invenum() {
                return is_check_show_invenum == null ? "" : is_check_show_invenum;
            }

            public void setIs_check_show_invenum(String is_check_show_invenum) {
                this.is_check_show_invenum = is_check_show_invenum;
            }

            public int getGoods_gifts_num() {
                return goods_gifts_num;
            }

            public void setGoods_gifts_num(int goods_gifts_num) {
                this.goods_gifts_num = goods_gifts_num;
            }

            public int getGoods_gifts_auth() {
                return goods_gifts_auth;
            }

            public void setGoods_gifts_auth(int goods_gifts_auth) {
                this.goods_gifts_auth = goods_gifts_auth;
            }

            private int manual_discount;//收銀員單品打折權限 1開啓 0關閉

            private int store_manual_discount;//單品打折-折上折是否開啓 1開啓 0關閉

            private double manual_min_discount;//手動折扣最低折扣

            private double manual_max_amount;//手動折扣最多優惠金額

            public int getManual_discount() {
                return manual_discount;
            }

            public void setManual_discount(int manual_discount) {
                this.manual_discount = manual_discount;
            }

            public int getStore_manual_discount() {
                return store_manual_discount;
            }

            public void setStore_manual_discount(int store_manual_discount) {
                this.store_manual_discount = store_manual_discount;
            }

            public double getManual_min_discount() {
                return manual_min_discount;
            }

            public void setManual_min_discount(double manual_min_discount) {
                this.manual_min_discount = manual_min_discount;
            }

            public double getManual_max_amount() {
                return manual_max_amount;
            }

            public void setManual_max_amount(double manual_max_amount) {
                this.manual_max_amount = manual_max_amount;
            }

            public int getAdd_goods_jurisdiction() {
                return add_goods_jurisdiction;
            }

            public void setAdd_goods_jurisdiction(int add_goods_jurisdiction) {
                this.add_goods_jurisdiction = add_goods_jurisdiction;
            }

            public int getStore_operation_vip() {
                return store_operation_vip;
            }

            public void setStore_operation_vip(int store_operation_vip) {
                this.store_operation_vip = store_operation_vip;
            }

            public int getStore_preferential() {
                return store_preferential;
            }

            public void setStore_preferential(int store_preferential) {
                this.store_preferential = store_preferential;
            }

            public int getPreferential() {
                return preferential;
            }

            public void setPreferential(int preferential) {
                this.preferential = preferential;
            }

            public int getSale_diction_state() {
                return sale_diction_state;
            }

            public void setSale_diction_state(int sale_diction_state) {
                this.sale_diction_state = sale_diction_state;
            }

            public int getModify_plus_mem() {
                return modify_plus_mem;
            }

            public void setModify_plus_mem(int modify_plus_mem) {
                this.modify_plus_mem = modify_plus_mem;
            }

            public int getDensity_free_state() {
                return density_free_state;
            }

            public void setDensity_free_state(int density_free_state) {
                this.density_free_state = density_free_state;
            }
        }

        public static class OtherPayListBean {
            /**
             * id : 1
             * name : ces
             */

            private String id;
            private String name;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
}
